
# gcc example.c srs_librtmp.cpp -g -O0 -lstdc++ -lcrypto -lssl -lm -o example
CFLAGS = -g -O0
LDFLAGS = -lssl -lcrypto -lstdc++ -lm

all: demo h264pub

demo: example.c srs_librtmp.cpp
	$(CC) $^ -o $@ $(CFLAGS) $(LDFLAGS)

h264pub: srs_h264_raw_publish.c srs_librtmp.cpp
	$(CC) $^ -o $@ $(CFLAGS) $(LDFLAGS)

clean:
	rm -f demo h264pub
